Skip to content

Release 1.5.0: finetune / deploy / dataset / token-plan + composable CLI#83

Merged
XXPermanentXX merged 9 commits into
mainfrom
feat/composable-cli
Jul 1, 2026
Merged

Release 1.5.0: finetune / deploy / dataset / token-plan + composable CLI#83
XXPermanentXX merged 9 commits into
mainfrom
feat/composable-cli

Conversation

@XXPermanentXX

Copy link
Copy Markdown
Collaborator

What

Release 1.5.0 of the bailian-cli family. Bundles the new command groups landed since 1.4.2 (fine-tuning, deployment, datasets, Token Plan, auto-update) together with the composable-package refactor and a new sibling CLI (kscli).

New commands (user-facing)

  • bl finetune — model fine-tuning: create / list / get / watch / cancel jobs, training logs, checkpoints, export a checkpoint as a deployable model, query training capability. Types: sft, sft-lora, dpo, dpo-lora, cpt.
  • bl deploy — model deployment: create / list / get / update (rate limits) / scale / delete, list deployable models and plans.
  • bl dataset — datasets: upload / list / get / delete, plus validate to check a local .jsonl before uploading (ChatML / DPO / CPT).
  • bl token-plan — Token Plan management: list seats, add members, batch-assign seats, create per-seat API key.
  • Auto-update check — after a command runs, the CLI checks npm (throttled) and shows an Update available hint; a major stable-version gap self-updates. Skipped with --quiet / on bl update.

Architecture (internal)

bailian-cli split into composable packages:

bailian-cli-core       # pure SDK
bailian-cli-runtime    # NEW — CLI framework: createCli, registry, args, output, pipeline
bailian-cli-commands   # NEW — shared command library
bailian-cli            # bl — composes runtime + commands (behavior unchanged)
knowledge-studio-cli   # NEW — kscli, lightweight RAG CLI on the same runtime

Commands declare usageArgs / exampleArgs (no bin prefix) so the runtime renders help per product. Release tooling builds/publishes runtime + commands alongside core + cli.

Version

bailian-cli, bailian-cli-core, bailian-cli-runtime, bailian-cli-commands release in lockstep → all bumped to 1.5.0 (from 1.4.2 / 1.4.0).

knowledge-studio-cli stays at 0.0.1 — it publishes from a separate workflow run and is not in the bailian-cli publish set.

Fixed

  • Console gateway commands surface a readable message on a non-string errorCode instead of [object Object].

Notes / follow-ups

  • Lockstep validation (tools/release/lib/validate.mjs) requires every package in the publish set to match core's version. The --knowledge publish path includes kscli, so its 0.0.1 would fail that check — decide before the first kscli publish whether kscli joins the 1.5.0 lockstep or the validation exempts it.

Test

  • pnpm install --frozen-lockfile ✓ (lockfile unchanged)
  • CI: build + vp check + tests

🤖 Generated with Claude Code

XXPermanentXX and others added 9 commits June 23, 2026 17:51
…CLIs

Decompose the monolithic `cli` package into three layers so multiple
products can be assembled from a shared base:

- bailian-cli-runtime: framework infra (createCli, registry, args,
  output, pipeline, utils) — product-agnostic
- bailian-cli-commands: command library, grouped (base/knowledge/text/
  media/memory/misc) so each product picks the sets it needs
- packages/cli (bl): full command set; packages/rag (rag): base +
  knowledge only

Product identity (binName / clientName / npmPackage) is injected at the
createCli boundary and required there, with no per-consumer defaults.
…h presets

Commands no longer hardcode "bl" or their path — the runtime renders the
`<bin> <path>` prefix from each product's registry key, so shared commands
show `bl knowledge retrieve` / `rag retrieve` from one codebase. commands
package now exports only individual commands (no groups/catalog); bl and rag
each spell out their own path map. Also removes the unused export-schema command.
- 用于阿里云 Model Studio 的知识库检索,支持 RAG(检索增强生成)场景
- 提供配置查看与设置、知识库检索、自更新功能
- 替换原 rag 子包,移除 rag 相关代码及配置
- 新增独立 package,包含完整的构建、启动和发布配置
- 添加详细的中英文 README 文档说明安装、使用与认证方式
- 配置 TypeScript 和 Vite 构建支持,确保开发体验和构建质量
- 更新根 package.json 脚本,将 rag dev 命令替换为 kscli dev
- 新增 Git 忽略文件,排除日志、构建输出等无关文件
@XXPermanentXX XXPermanentXX merged commit f597b94 into main Jul 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants